@import '../../style/themes';
@import '../../style/mixins';

.x-notification-container {
  @include reset-component();
  
  position: fixed;
  bottom: 16px;
  right: $margin-lg;
  // display: flex;
  // flex-direction: column;
  // justify-content: flex-end;
  // height: 0;
  user-select: none;
  z-index: 998;
}

.x-notification {
  display: flex;
  flex-direction: column;
  width: $notification-width;
  margin-top: $margin-md;
  box-sizing: border-box;
  background: $notification-bg;
  box-shadow: $box-shadow-base;
  &:active {
    transform: scale(.98);
    transition: transform .1s;
  }

  // transition
  &-move, &-enter-active, &-leave-active {
    transition: all .5s cubic-bezier(0.55, 0, 0.1, 1);
  }
  &-enter-from {
    opacity: 0;
    transform: translateX(100%);
  }
  &-leave-to {
    opacity: 0;
    transform: translate(50%, -100%);
  }
  &-leave-active {
    position: absolute;
  }

  &_cover {
    
  }

  &_header {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: $padding-md;
  }

  &_title {
    padding-right: $padding-md;
    font-size: $font-size-lg;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &_close {
    position: absolute;
    top: 0;
    right: 0;
    padding: $padding-md $padding-md 0 0;
    opacity: .4;
    &:hover {
      opacity: 1;
    }
  }

  &_description {
    font-size: $font-size-lg;
    color: $notification-desc-color;
  }

  &_meta {
    font-size: $font-size-sm;
    color: $notification-desc-color;
  }

}